package housing.task6_web;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: Linderhof
 * Date: 01.12.2010
 * Time: 19:40:12
 */
public class InputFormServlet extends javax.servlet.http.HttpServlet {
    @Override
    public void init() throws ServletException {
        super.init();
        System.out.println("Servlet created");
    }

    @Override
    public void destroy() {
        super.destroy();
        System.out.println("Servlet destroyed");
    }


    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.getWriter().write("<html><body>" + "<H1><text>Hello Me!</text></H1>" + "</body></html>");
    }


}
